package com.book.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author SuperYu  2024/6/17
 */
@Controller
@Slf4j
public class IndexController {
    @GetMapping("/index")
    public String toIndex(){
        log.info("------ index ------");
        return "index";
    }

    @GetMapping("/toLogin")
    public String toLogin(){
        log.info("------ to login ------");
        return "login";
    }



}
